package homework0309;

public class FinallyDemo1 {
    public static void main(String[] args) {
        System.out.println("开始");
        try {
            String name=null;
            System.out.println(name.length());
        }catch (Exception e){
            System.out.println("发现异常并解决了");
        }finally {
            System.out.println("finally中的代码运行了");
        }

        System.out.println("结束");
    }
}
